package com.hspedu.homework.homework03;

/**
 * @Author Stringzhua
 * @Date 2024/3/3 16:26
 * description:老师类
 */
public class Teacher {
    private String name;
    private int age;
    private String post;//职称
    private double salary;//工资
    //增加一个工资级别
    private double level;//工资级别

    //introduce方法
    public void interduce() {
        System.out.println("name=" + name + "  age=" + age + "  post=" + post + "  salary=" + salary + "  level=" + level);
    }

    //有参构造器
    public Teacher(String name, int age, String post, double salary, double level) {
        this.name = name;
        this.age = age;
        this.post = post;
        this.salary = salary;
        this.level = level;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public double getLevel() {
        return level;
    }

    public void setLevel(double level) {
        this.level = level;
    }
}
